package com.fowo.api.model.nav.after.sell.order.refund;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 订单管理售后工单退款信息 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class NavAfterSellOrderRefundImportPo {

  /** 所属订单管理售后工单 */
  @ExcelProperty("所属订单管理售后工单")
  private String parentNavAfterSellOrderAfterId;

  @ExcelIgnore
  @Schema(title = "所属订单管理售后工单")
  private String parentNavAfterSellOrder;

  /** 平台单号 */
  @ExcelProperty("平台单号")
  @Size(max = 50, message = "平台单号长度不能超过50")
  private String platformOrderId;

  /** 产品 */
  @ExcelProperty("产品")
  @Size(max = 500, message = "产品长度不能超过500")
  private String productIdName;

  @ExcelIgnore
  @Schema(title = "产品")
  private String productId;

  /** 品名 */
  @ExcelProperty("品名")
  @Size(max = 50, message = "品名长度不能超过50")
  private String productName;

  /** SKU */
  @ExcelProperty("SKU")
  @Size(max = 50, message = "SKU长度不能超过50")
  private String sku;

  /** MSKU */
  @ExcelProperty("MSKU")
  @Size(max = 50, message = "MSKU长度不能超过50")
  private String msku;

  /** 订单金额 */
  @ExcelProperty("订单金额")
  @DecimalString(
    message = "订单金额小数格式不正确",
    label = "订单金额",
    min = 0
  )
  private String amount;

  /** 已退款 */
  @ExcelProperty("已退款")
  @DecimalString(message = "已退款小数格式不正确", label = "已退款", min = 0)
  private String refundAmount;

  /** 本次退款 */
  @ExcelProperty("本次退款")
  @Size(max = 50, message = "本次退款长度不能超过50")
  private String thisAmount;

  /** 退款备注 */
  @ExcelProperty("退款备注")
  @Size(max = 50, message = "退款备注长度不能超过50")
  private String remark;
}
